<?php
require_once 'class/setup.php';

$smarty = new Smarty_Offise();

$post = $db->fetchAll("SELECT * FROM post LIMIT 0,30");

    $smarty->assign('post',$post);
    $smarty->display('index.tpl');

    
?>